<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    <h1>Hello ..</h1>
    <img src="img.png" alt="">
    <script src="https://unpkg.com/axios/dist/axios.min.js"></script>
    <script>
        (async () => {
            // axios.defaults.baseURL='http://localhost:4000'
            axios.defaults.withCredentials = true;
            const res = await axios.get("/api/users",{
                headers:{
                    'X-Token':'asdasd'
                }
            })
            console.log('data',res.data)
            // document.writeln(`Response : ${JSON.stringify(res.data)}`)
        })()
    </script>
    <form action="/add" method="post" >
        <input type="text" name="abc" value="123">
        <input type="submit" value="Add">
    </form>
</body>
</html>